<script setup lang="ts">
import { MacItem } from '../../../types'

defineProps<{
  mac: MacItem
}>()

</script>

<template>
  <div>
    <img :src="mac.imgSrc" alt="macbookair">
    <h1>{{ mac.goodName }}<br>
      <span>RMB {{ mac.price }} 起</span>
    </h1>
    <p>
      {{ mac.desc[0] }} <br>
      {{ mac.desc[1] }} <br>
      {{ mac.desc[2] }}<br>
      {{ mac.desc[3] }}<br>
      {{ mac.desc[4] }}<br>
      {{ mac.desc[5] }}<br>
      {{ mac.desc[6] }}
    </p>
    <span>进一步了解 ></span>
  </div>
</template>

<style scoped lang="less">
div {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  p {
    text-align: left;
    font-size: 10px;
    line-height: 40px;
  }

  img {
    width: 165px;
    height: auto;
    padding: 20px 0;
  }
}

h1 {
  font-size: 15px;
  text-align: left;
  padding: 20px 0;

  span {
    font-size: 10px;
  }

}

span {
  color: rgb(12, 106, 205);
  font-size: 12px;
}
</style>
